package com.whfc.fim.dao;

import com.whfc.fim.entity.FimWarnFreqConfig;
import org.apache.ibatis.annotations.Param;

/**
 * @author : qzexing
 * @version : 1.0
 * @date : 2020-10-09 15:16
 */
public interface FimWarnFreqConfigMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(FimWarnFreqConfig record);

    int insertSelective(FimWarnFreqConfig record);

    FimWarnFreqConfig selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(FimWarnFreqConfig record);

    int updateByPrimaryKey(FimWarnFreqConfig record);

    /**
     * 根据组织机构查找报警频率配置
     *
     * @param deptId 组织机构ID
     * @return 报警频率配置
     */
    FimWarnFreqConfig selectByDeptId(@Param("deptId") Integer deptId);
}